
package com.dews.train.convert;

import com.dews.train.domain.dto.TrainingProgramDTO;
import com.dews.train.domain.vo.TrainingProgramVo;
import com.dews.train.domain.entity.TrainingProgram;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 培训计划转换
 *
 * @author 易学蔚来科技工作室-清风学Java
 * @date 2024-11-30
 */
@Mapper
public interface TrainingProgramConvert {

    TrainingProgramConvert INSTANCE = Mappers.getMapper(TrainingProgramConvert.class);

    /**
     * 转换
     *
     * @param bean
     * @return {@link TrainingProgram }
     */
    TrainingProgram convert(TrainingProgramVo bean);

    /**
     * 转换
     *
     * @param domain
     * @return {@link TrainingProgramVo }
     */
    TrainingProgramVo convert(TrainingProgram domain);

    /**
     * 转换
     *
     * @param domains
     * @return {@link List }<{@link TrainingProgramVo }>
     */
    List<TrainingProgramVo> convert(List<TrainingProgram> domains);

    /**
     * 转换
     *
     * @param trainingProgramDTO 训练项目 DTO
     * @return {@link TrainingProgram }
     */
    TrainingProgram convert(TrainingProgramDTO trainingProgramDTO);

}
